package net.zoneland.zrdp.biz.domain;

import java.time.LocalDateTime;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import net.zoneland.zrdp.common.annotation.Excel;
import net.zoneland.zrdp.common.core.domain.BaseEntity;

/**
 * 审批记录对象 zrdp_flow_approve_info
 *
 * @author zonevue
 */
public class FlowApproveInfo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 流程标识 */
    @Excel(name = "流程标识")
    private String piid;

    /** 任务id */
    @Excel(name = "任务id")
    private String tiid;

    /** 任务标记 */
    @Excel(name = "任务标记")
    private String taskTag;

    /** 任务状态 */
    @Excel(name = "任务状态")
    private String state;

    /** 当前节点编码 */
    private String nodeId;

    /** 当前节点名称 */
    @Excel(name = "当前节点名称")
    private String nodeName;

    /** 任务处理人uid */
    @Excel(name = "任务处理人uid")
    private String handlerId;

    /** 任务处理人姓名 */
    @Excel(name = "任务处理人姓名")
    private String handlerName;

    /** 部门 */
    @Excel(name = "部门")
    private String handlerDept;

    /** 处理时间 */
    private LocalDateTime approveTime;

    /** 决策名称 */
    private String decisionName;

    /** 处理决策 */
    private String decision;

    /** 处理意见 */
    private String notion;

    /** 下一任务id */
    private String nextTiid;

    /** 下一节点id */
    private String nextNodeId;

    /** 下一处理节点名 */
    private String nextNodeName;

    /** 下一处理人uid */
    private String nextHandlerId;

    /** 下一处理人姓名 */
    private String nextHandlerName;

    /** 到达时间 */
    private LocalDateTime arriveTime;

    /** 处理用时 */
    private String processingTime;

    /** 累计用时 */
    private String cumulativeTime;

    /** 是否删除 */
    private Integer deleted;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }
    public void setPiid(String piid) {
        this.piid = piid;
    }

    public String getPiid() {
        return piid;
    }
    public void setTiid(String tiid) {
        this.tiid = tiid;
    }

    public String getTiid() {
        return tiid;
    }
    public void setTaskTag(String taskTag) {
        this.taskTag = taskTag;
    }

    public String getTaskTag() {
        return taskTag;
    }
    public void setState(String state) {
        this.state = state;
    }

    public String getState() {
        return state;
    }
    public void setNodeId(String nodeId) {
        this.nodeId = nodeId;
    }

    public String getNodeId() {
        return nodeId;
    }
    public void setNodeName(String nodeName) {
        this.nodeName = nodeName;
    }

    public String getNodeName() {
        return nodeName;
    }
    public void setHandlerId(String handlerId) {
        this.handlerId = handlerId;
    }

    public String getHandlerId() {
        return handlerId;
    }
    public void setHandlerName(String handlerName) {
        this.handlerName = handlerName;
    }

    public String getHandlerName() {
        return handlerName;
    }
    public void setHandlerDept(String handlerDept) {
        this.handlerDept = handlerDept;
    }

    public String getHandlerDept() {
        return handlerDept;
    }
    public void setApproveTime(LocalDateTime approveTime) {
        this.approveTime = approveTime;
    }

    public LocalDateTime getApproveTime() {
        return approveTime;
    }
    public void setDecisionName(String decisionName) {
        this.decisionName = decisionName;
    }

    public String getDecisionName() {
        return decisionName;
    }
    public void setDecision(String decision) {
        this.decision = decision;
    }

    public String getDecision() {
        return decision;
    }
    public void setNotion(String notion) {
        this.notion = notion;
    }

    public String getNotion() {
        return notion;
    }
    public void setNextTiid(String nextTiid) {
        this.nextTiid = nextTiid;
    }

    public String getNextTiid() {
        return nextTiid;
    }
    public void setNextNodeId(String nextNodeId) {
        this.nextNodeId = nextNodeId;
    }

    public String getNextNodeId() {
        return nextNodeId;
    }
    public void setNextNodeName(String nextNodeName) {
        this.nextNodeName = nextNodeName;
    }

    public String getNextNodeName() {
        return nextNodeName;
    }
    public void setNextHandlerId(String nextHandlerId) {
        this.nextHandlerId = nextHandlerId;
    }

    public String getNextHandlerId() {
        return nextHandlerId;
    }
    public void setNextHandlerName(String nextHandlerName) {
        this.nextHandlerName = nextHandlerName;
    }

    public String getNextHandlerName() {
        return nextHandlerName;
    }
    public void setArriveTime(LocalDateTime arriveTime) {
        this.arriveTime = arriveTime;
    }

    public LocalDateTime getArriveTime() {
        return arriveTime;
    }
    public void setProcessingTime(String processingTime) {
        this.processingTime = processingTime;
    }

    public String getProcessingTime() {
        return processingTime;
    }
    public void setCumulativeTime(String cumulativeTime) {
        this.cumulativeTime = cumulativeTime;
    }

    public String getCumulativeTime() {
        return cumulativeTime;
    }
    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public Integer getDeleted() {
        return deleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("piid", getPiid())
            .append("tiid", getTiid())
            .append("taskTag", getTaskTag())
            .append("state", getState())
            .append("nodeId", getNodeId())
            .append("nodeName", getNodeName())
            .append("handlerId", getHandlerId())
            .append("handlerName", getHandlerName())
            .append("handlerDept", getHandlerDept())
            .append("approveTime", getApproveTime())
            .append("decisionName", getDecisionName())
            .append("decision", getDecision())
            .append("notion", getNotion())
            .append("nextTiid", getNextTiid())
            .append("nextNodeId", getNextNodeId())
            .append("nextNodeName", getNextNodeName())
            .append("nextHandlerId", getNextHandlerId())
            .append("nextHandlerName", getNextHandlerName())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("arriveTime", getArriveTime())
            .append("processingTime", getProcessingTime())
            .append("cumulativeTime", getCumulativeTime())
            .append("deleted", getDeleted())
            .toString();
    }
}
